#include <stdio.h>
#include <string.h>
#define MAX_SIZE 256

int main() {
    int index;
    scanf("%d", &index);
    char input[MAX_SIZE];
    scanf("%s", input);
    char commandList[MAX_SIZE][MAX_SIZE];
    int commandCount = 0;

    char curCommand[MAX_SIZE] = "";
    int curPos = 0;
    for(int i = 0; input[i]; i++) {
        char curCh = input[i];
        if (curCh == '"' && strchr(curCommand, '"') != NULL) {
            curCommand[curPos++] = '"';
            curCommand[curPos] = 0;
            strcpy(commandList[commandCount++], curCommand);
            curPos = 0;
            curCommand[curPos] = 0; 
        }
        // error 1# 没有判断 curCommand 是否为空
        // 如果没有这个判断，在出现 ""_ 和 __ 会加入空命令到 commandList 中
        // 并且只能写进 内层 if ，不能写进外层 if
        else if (curCh == '_' && strchr(curCommand, '"') == NULL) {
            if (curPos >= 1) {
                curCommand[curPos] = 0;
                strcpy(commandList[commandCount++], curCommand);
                curPos = 0;
                curCommand[curPos] = 0;
            }
        }
        else if (i == strlen(input) - 1) {
            curCommand[curPos++] = curCh;
            curCommand[curPos] = 0;
            strcpy(commandList[commandCount++], curCommand);
            curPos = 0;
            curCommand[curPos] = 0;
        }
        else {
            curCommand[curPos++] = curCh;
        }
    }
    if (index < 0 || index >= commandCount) {
        printf("ERROR\n");
    }
    else {
        strcpy(commandList[index], "******");
        for(int i = 0; i < commandCount; i++) {
            if (i == 0) {
                printf("%s", commandList[i]);
            }
            else {
                printf("_%s", commandList[i]);
            }
        }
    }

    return 0;
}